export function navToOfQuery(url:any,params:any) {
    this.props.history.push({
        pathname:url,
        query:{
           ...params
        }
    })
}
/**
 *
 * 传参
 *
 * */
export function navToOfParams(url:any,params:Object) {
    // let keys=Object.keys(params)
    let keys_arr=Object.entries(params);
    let str=keys_arr.map(ele=>`${ele[0]}=${ele[1]}`).join('&')
    this.props.history.push(`${url}?`)
}